/***************************************************************************
 * *   File name: DemoPlugin.h
 * *    Describe: 业务功能实现类
 * *  Created on: 2016-8-6
 * *      Author: dengxiudong
 * ************************************************************************/ 
#ifndef _DEMO_PLUGIN_H_
#define _DEMO_PLUGIN_H_

#include "Protocol.h"
#include "IPlugin.h"
#include "Demo.h"

class DemoPlugin : public IPlugin
{
public:
	DemoPlugin();
	~ DemoPlugin();
	/**
	 *\brief  初始化插件，将插件置于可执行任务状态
	 *\return 操作结果
	 */
	virtual bool initPlugin();
		
	/**
	 *\brief 结束任务，停止插件执行
	 */
	virtual void stopPlugin();
	
private:
	Demo *m_ptrDemo;

};

extern "C" {
    void*  CreatePluginInstance();
    void   DestoryPluginInstance();
};






#endif
